﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace QLKS
{
    public partial class frxemttnv : Form
    {
        private String _maLoaiNV;

        internal String MaLoaiNV
        {
            get { return _maLoaiNV; }
            set { _maLoaiNV = value; }
        }

        private DataTable _dSNV;

        internal DataTable DSNV
        {
            get { return _dSNV; }
            set { _dSNV = value; }
        }
        public frxemttnv()
        {
            InitializeComponent();
        }

        private void btnthoat_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void rbql_CheckedChanged(object sender, EventArgs e)
        {
            MaLoaiNV = "ql";

            DSNV = BUS.XuLyNhanVien.TimToanBoNhanVien(MaLoaiNV);

            dgvDSNV.DataSource = DSNV;
        }

        private void rbnv_CheckedChanged(object sender, EventArgs e)
        {
            MaLoaiNV = "nv";

            DSNV = BUS.XuLyNhanVien.TimToanBoNhanVien(MaLoaiNV);

            dgvDSNV.DataSource = DSNV;
        }

        private void frxemttnv_Load(object sender, EventArgs e)
        {

        }


    }
}
